package day02;

import java.util.Scanner;

public class sales {
    public static void main(String[] args) {

        Scanner scanner=new Scanner(System.in);

        double price= scanner.nextDouble();
        double sum;

        if(price>=500)
        {
            sum=price*0.8;
        }
        else    {
            sum=price;
        }
        System.out.println("消费金额为"+sum);



    }
}
